#!/usr/bin/python
# -*- coding: utf-8 -*-
import scipy.optimize.fmin_l_bfgs_b as bfgs


def func(x):
    return np.ones(x.shape, 'float')


def grad(x):
    return np.ones(x.shape, 'float')


x0

bfgs( func, x0, fprime=None, args=(), approx_grad=0, bounds=None,
    m=10, factr=10000000.0, pgtol=1.0000000000000001e-05, epsilon=1e-08,
    iprint=-1, maxfun=15000, disp=None)
